<template>
    <div class="header">
        <div class="left"> &lt; </div>
        <div class="center">
            <h1>{{title}}</h1>
        </div>
        <div class="right">...</div>

    </div>

</template>
<script>
export default{
    data(){
        return {
            title:"首页123"
        }
    }

}

</script>
<style>
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.header{
    width: 375px;
    height: 50px;
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    background-color: pink;
}
.left,.right{
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
}
.center{
    flex-grow: 1;
    text-align: center;
    line-height: 50px;
}
.center h1{
    font-size: 24px;
}
</style>